package cn.wss.flowable.model;

import lombok.Data;
import org.flowable.engine.repository.Deployment;

import java.util.Date;

@Data
public class FlowableDeployment {

  private String id;
  private String key;
  private String name;
  private String category;
  private String tenantId;
  private Date deploymentTime;

  public FlowableDeployment() {
  }

  public FlowableDeployment(Deployment deployment) {
    this.id = deployment.getId();
    this.key = deployment.getKey();
    this.name = deployment.getName();
    this.category = deployment.getCategory();
    this.tenantId = deployment.getTenantId();
    this.deploymentTime = deployment.getDeploymentTime();
  }
}
